//? proxy(target,handler)


const target = [1,2,3,4,5,7]
const proxy = new Proxy(target, {
    get(target, p, receiver) {
        if (Number(p) < 0) {
            console.log(target.length + parseInt(p))
            return target[target.length + parseInt(p)]
        }
        return target[p]
    }
})
console.log(proxy[-2])
